package com.itheima.lambda.test1;

public class StringHandlerDemo {
    public static void main(String[] args) {
        //Lambda
        useStringHandler((String msg) -> System.out.println("我是Lambda表达式" + msg));
    }

    public static void useStringHandler(StringHandler stringHandler){
        stringHandler.printMessage("itheima");
    }
}

interface StringHandler{
    void printMessage(String msg);
}